.card {
  perspective: 1000px;
  width: 268px;
  height: 328px;
  position: relative;
  transform-style: preserve-3d;
}

.card .front,
.card .back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  transition: transform 0.6s ease;
}

.card .back {
  transform: rotateY(180deg);
}
.card.click .front {
  transform: rotateY(180deg);
}

.card.click .back {
  transform: rotateY(0deg);
}
